scheduler: Introduce pcpu_schedule_lock
authorKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:26:59 +0000 (08:26 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:26:59 +0000 (08:26 +0000)
commitd2f6b6016990b570c6782e1639ca1c0b07013b59
tree18098d7d1f3581e1500ce0bdd819083c8b5d702f
parent188be59890f39c0af54367e28cd0a80b80343b55
scheduler: Introduce pcpu_schedule_lock

Many places in Xen, particularly schedule.c, grab the per-cpu spinlock
directly, rather than through vcpu_schedule_lock().  Since the lock
pointer may change between the time it's read and the time the lock is
successfully acquired, we need to check after acquiring the lock to
make sure that the pcpu's lock hasn't changed, due to cpu
initialization or cpupool activity.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/ia64/vmx/vmmu.c
xen/common/sched_credit.c
xen/common/schedule.c
xen/include/xen/sched-if.h